package nl.devatwork.hello.world.service;
 
public class HelloWorldServiceUtil {
	
    private static HelloWorldService _service;
 
    public static HelloWorldService getService() {
    	System.out.println("calling service here...................");
        if (_service == null) {
            throw new RuntimeException("HelloWorldService is not set");
        }
 
        return _service;
    }
 
    public void setService(HelloWorldService service) {
        _service = service;
    }
 
    public static String sayHello(String name) {
        return getService().sayHello(name);
    }
}